-- GENERATED SPELL FOR [Witherbark Troll] --


function spell0_2552(pUnit, Event) --@Wither Touch,n/a--
pUnit:FullCastSpellOnTarget(4974,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2552', 533, 1)
end

function Sorts_2552(pUnit, Event)
local choix_sorts_2552 = math.random(0, 0)
if choix_sorts_2552 == 0 then
pUnit:RegisterEvent('spell0_2552', 1, 1)
end
end

function mob2552_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2552', math.random(1500, 3000), 1)
end

function mob2552_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2552_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2552_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2552, 1, 'mob2552_Action')
RegisterUnitEvent(2552, 2, 'mob2552_Leave')
RegisterUnitEvent(2552, 3, 'mob2552_Kill')
RegisterUnitEvent(2552, 4, 'mob2552_Die')
